import request from '@/utils/request'
import qs from 'qs'
//专栏排行榜接口
export const rankingList = (data) => {
  return request({
    url: "/v1/column/ranking/list",
    method: "get",
    params: data
  });
};

//精选推荐接口
export const recommendList = (data) => {
  return request({
    url: "/v1/column/recommend/list",
    method: "get",
    params: data
  });
};

//主编圆桌接口
export const roundtableList = (data) => {
  return request({
    url: "/v1/column/roundtable/list",
    method: "get",
    params: data
  });
};
//大咖讲坛接口
export const expertList = (data) => {
  return request({
    url: "/v1/column/expert/list",
    method: "get",
    params: data
  });
};
//头条推荐接口
export const headlinesList = (data) => {
  return request({
    url: "/v1/column/headlines/list",
    method: "get",
    params: data
  });
};
//专栏列表筛选接口
export const columnList = (data) => {
  return request({
    url: "/v1/column/list",
    method: "get",
    params: data
  });
};
//专栏详情接口
export const columnDetail = (data) => {
  return request({
    url: "/v1/column/detail",
    method: "get",
    params: data
  });
};
//专栏音频列表
export const audioList = (data) => {
  return request({
    url: "/v1/column/audio/list",
    method: "get",
    params: data
  });
};

//人物下文章列表接口
export const personArticleList = (data) => {
  return request({
    url: "/v1/column/person/article/list",
    method: "get",
    params: data
  });
};
//人物详情接口
export const personDetail = (data) => {
  return request({
    url: "/v1/column/person/detail",
    method: "get",
    params: data
  });
};

//专栏人物列表
export const personList = (data) => {
  return request({
    url: "/v1/column/person/list",
    method: "get",
    params: data
  });
};

//关注/取消关注人物
export const personFollow = (data) => {
  return request({
    url: "/v1/column/person/follow",
    method: "post",
    data,
  });
};

//专栏文章列表
export const articleList = (data) => {
  return request({
    url: "/v1/column/article/list",
    method: "get",
    params: data
  });
};

//收藏/取消收藏专栏
export const columnFavorite = (data) => {
  return request({
    url: "/v1/column/favorite",
    method: "post",
    data
  });
};

//音频详情接口
export const audioDetail = (data) => {
  return request({
    url: "/v1/column/audio/detail",
    method: "get",
    params: data
  });
};


//详情页猜你喜欢接口
export const guessList = (data) => {
  return request({
    url: "/v1/column/guess/list",
    method: "get",
    params: data
  });
};


//音频收藏/取消收藏接口
export const audioFavorite = (data) => {
  return request({
    url: "/v1/column/audio/favorite",
    method: "post",
    data
  });
};

//音频推荐/取消推荐接口
export const audioRecommend = (data) => {
  return request({
    url: "/v1/column/audio/recommend",
    method: "post",
    data
  });
};
//音频播放次数统计接口
export const audioCount = (data) => {
  return request({
    url: "/v1/column/audio/count",
    method: "post",
    data
  });
};
//音频播放时长统计接口
export const audioTime = (data) => {
  return request({
    url: "/v1/column/audio/time",
    method: "post",
    data,
  });
};



//文章详情接口
export const articleDetail = (data) => {
  return request({
    url: "/v1/column/article/detail",
    method: "get",
    params:data,
  });
};

//文章收藏/取消收藏接口
export const articleFavorite = (data) => {
  return request({
    url: "/v1/column/article/favorite",
    method: "post",
    data,
  });
};



//文章浏览时长统计接口
export const articleTime = (data) => {
  return request({
    url: "/v1/column/article/time",
    method: "post",
    data,
  });
};

//文章浏览时长统计接口
export const articleRecommend = (data) => {
  return request({
    url: "/v1/column/article/recommend",
    method: "post",
    data,
  });
};


